package com.xique.door.bean.domain.estate;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xique.common.core.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 * @author shd
 * @create 2022/6/9 15:20
 */
@Data
@TableName(value = "c_estate_user_device")
public class EstateUserDevice {

    private static final long serialVersionUID = 1L;

    /** 权限ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 项目ID */
    @Excel(name = "项目ID")
    private Long parkId;

    /** 物业用户ID */
    @Excel(name = "物业用户ID")
    private Long userId;

    /** 用户唯一id（设备端） */
    @Excel(name = "用户唯一id", readConverterExp = "设=备端")
    private String customId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 设备sn */
    @Excel(name = "设备sn")
    private String devSn;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String model;

    /** 状态 SUCCESS , PENDING */
    @Excel(name = "状态", readConverterExp = "状态 SUCCESS , PENDING")
    private String status;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createUser;

    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private Long updateUser;

    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
